package com.bk.mapper;

import com.bk.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper {
    /**
     * 根据帖子id查询评论记录
     * @param innoId
     * @return
     */
    @Select("select * from comment where innovation_id = #{innoId}")
    List<Comment> getByInnovationId(Long innoId);
}
